package cn.pzaily.orange.core.utils.page;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @PackageName: cn.pzaily.orange.core.page
 * @Description:
 * @Author: Pang
 * @Date: 2021-05-10 22:36
 */
public class PageRequest implements Serializable {

    /**
     * 当前页码
     */
    private Integer pageNum;

    /**
     * 每页数量
     */
    private Integer pageSize;

    /**
     * 请求查询参数
     */
    private Map<String, Object> params = new HashMap<>();

    public Object getParam(String key) {
        return this.params.get(key);
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
